<form id="add-form" role="form" data-toggle="validator" method="POST" data-before-submit="checkconfig" action="<?= Tools::siteurl("configvalue/add") ?>">
    <div class="row">
        <div class="col-xs-12">
            <div class="form-group">
                <label for="name" class="control-label">ID:</label>
                <input type="text" class="form-control" id="id" name="row[id]" value="" required="required" />
            </div>
            <div class="form-group">
                <label for="name" class="control-label">名称:</label>
                <input type="text" class="form-control" id="name" name="row[name]" value="" required="required" />
            </div>
            <div class="form-group">
                <label for="content" class="control-label">内容:</label>
                <textarea name="row[content]" id="content" class="form-control" cols="30" rows="3"></textarea>
            </div>
            <div class="form-group">
                <label for="weigh" class="control-label">权重:</label>
                <input type="text" class="form-control" id="weigh" name="row[weigh]" value="0" required="required" size="6" />
            </div>
        </div>
    </div>
</div>
<div class="form-group">
    <label for="content" class="control-label">状态:</label>
    <input type="radio" name="row[status]" value="normal" id="status-normal" checked />
    <label for="status-normal">正常</label>
    <input type="radio" name="row[status]" value="hidden" id="status-hidden" />
    <label for="status-hidden">隐藏</label>
</div>
</form>